package edu.guet.strategy;

public class Main {


    public static void main(String[] args) {
        CashContext context = new CashContext("打8折");
        Double result = context.getResult(1000.0);
        System.out.println("1000打8折： " + result);

        CashContext cashContext = new CashContext("满300减100");
        Double result1 = cashContext.getResult(1000.0);
        System.out.println("1000满300减100： " + result1);
    }
}
